package com.xxzx.publicprevention.controller;


import com.xxzx.publicprevention.pojo.QjData;
import com.xxzx.publicprevention.service.QjDataService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * (QjData)表控制层
 *
 * @author makejava
 * @since 2020-12-19 16:55:39
 */
@RestController
@RequestMapping("qjData")
public class QjDataController {
    /**
     * 服务对象
     */
    @Resource
    private QjDataService qjDataService;

    @PostMapping("queryAll")
    public List<QjData> queryAll(QjData qjData){
        try {
            return qjDataService.queryAll(qjData);
        }catch (Exception ee){
            return  null;
        }
    }

}
